package mvc.com.test.testcases
{
	import asunit.framework.TestCase;
	
	import mvc.com.test.Example;

	public class InitTestCase extends TestCase
	{
		private var _instance:Example;
		
		public function InitTestCase(method:String)
		{
			super(method);
		}
		/* prepare for test */
		protected override function setUp():void
		{
			_instance=new Example();	
		}
		/* clean after test */
		protected override function tearDown():void
		{
			_instance=null;
		}
		/* public function test instance */
		public function testInstance():void
		{
			assertTrue("Example instance",_instance is Example);
		}
		public function testFail():void
		{
			assertFalse("Fail test",false);
		}
		public function testAdd():void
		{
			var result:Number=_instance.add(2,3);
			assertEquals("Get data:5 recived:"+result,result,5);				
		}
	}
	/* End Class */
}